﻿namespace NSynx.Test
{

    using System;
    using System.Collections.Generic;
    using System.Text;
    using NUnit.Framework;
    using NSynx.FlowEngine;
    using NSynx.FlowEngine.Interfaces;
    using Rhino.Mocks;

    [TestFixture]
    public class FlowRepositoryTest
    {

        MockRepository repo;

        [Test]
        public void AddFlowTotheRepository()
        {
            IFlow myFlow = repo.StrictMock<IFlow>();
            IFlowRepository flowRepository = repo.StrictMock<IFlowRepository>();
            flowRepository.Add(myFlow);

            Assert.AreEqual(true, flowRepository.Flows.Contains(myFlow));
        }

        [TestFixtureSetUp]
        public void Init()
        {
            repo = new MockRepository();
        }

    }
}
